package com.htjx.mall.commons.mappers;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.htjx.mall.commons.models.product.Specification;

public interface SpecificationMapper {
	
	public void insertOne(Specification specification); 
	
	public void updateOne(Specification specification);
	
	public void deleteOne(long id);
	
	public void deleteBatch(long catalog_id);
	
	public Specification selectOne(long id);
	
	public List<Specification> selectByProperty(@Param("p_name") String propertyName, @Param("p_value") String propertyValue);
	
	public List<Specification> selectByCatalogId(long catalog_id);
	
}
